﻿namespace SimpleX.RBAC
{
    public class SysUserOrgSeedData : ISqlSugarEntitySeedData<SysOrg>
    {
        public IEnumerable<SysOrg> SeedData()
        {
            var datas = new List<SysOrg>()
            {
               new() {
                    Id ="NA",
                    Category = CateGoryConst.Org_COMPANY,
                    SortCode = 9999,
                    ParentId = "0",
                    Name="无组织无纪律",
                    Names = "无组织无纪律"
               },
               new() {
                    Id ="420487490388037",
                    Category = CateGoryConst.Org_COMPANY,
                    ParentId = "0",
                    SortCode=1,
                    Name="振兴中华科技",
                    Names = "振兴中华科技"
               },
               new() {
                    Id ="420487490388038",
                    Category = CateGoryConst.Org_DEPT,
                    ParentId = "420487490388037",
                    SortCode=2,
                    Name="开发部",
                    Names = "振兴中华科技/开发部"
               },
               new() {
                    Id ="420487490388039",
                    Category = CateGoryConst.Org_DEPT,
                    ParentId = "420487490388037",
                    SortCode=3,
                    Name="用户部",
                    Names = "振兴中华科技/用户部"
               }
            };

            foreach (var item in datas)
            {
                item.CreateDate = DateTime.Now;
                item.CreateUserId = "Sys";
                item.CreateUserName = "Sys";
            }

            return datas;
        }
    }
}